$def with(affs, TOP10, rand5, partners)
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="寻宝图是一个旅游特惠情报网站。通过对互联网上来自预订网站、酒店官网、航空公司官网特惠信息的追踪与筛选，寻宝图为旅行者推荐性价比最高的特惠折扣信息。" />
<meta name="keywords" content="特惠评测精选,酒店特惠,机票特惠,旅游团特惠" />
<title>寻宝图_每周出版的旅游特惠评测精选_专业的旅游特惠评测媒体_酒店特惠_机票特惠_旅游团特惠_xunbaotu.com</title>
<link rel="shortcut icon" href="$config.STATIC_PREFIX/images/common/favorite.png" type="image/x-icon"/>
<link rel="alternate" type="application/rss+xml" title="寻宝图 &raquo; Feed" href="http://xunbaotu.com/discounts/rss?encoding=utf-8" />
<link href="$config.STATIC_PREFIX/default/css/main.css" rel="stylesheet" type="text/css" charset="utf-8" />
<script type="text/javascript" src="$config.STATIC_PREFIX/scripts/libs/jquery.js" charset="utf-8"></script>
<script type="text/javascript" src="$config.STATIC_PREFIX/scripts/libs/jquery.tools.min.js" charset="utf-8"></script>
<script type="text/javascript" src="$config.STATIC_PREFIX/scripts/libs/jquery.masonry.min.js" charset="utf-8"></script>
<script type="text/javascript" src="$config.STATIC_PREFIX/scripts/libs/jquery.infinitescroll.min.js" charset="utf-8"></script>
<script type="text/javascript" src="$config.STATIC_PREFIX/scripts/core.js" charset="utf-8"></script>
<script type="text/javascript" src="$config.STATIC_PREFIX/scripts/afflatus.js" charset="utf-8"></script>
<script type="text/javascript" src="$config.STATIC_PREFIX/scripts/index.js" charset="utf-8"></script>

</head>

<body>
<div id="top">
	<div class="the_wrap">
		<div class="wp_logo">
			<h1 class="logo">
				<a href="/" title="去首页">寻宝图发现超值旅游</a>
			</h1>
            <div class="menu">
                <ul>
                    <li><a href="/" title="首页">首页</li>
                    <li><a href="/discounts" title="特惠评测精选">特惠追踪精选</a></li>
                    <li><a href="/subscribe" title="订阅每周特惠追踪精选">免费订阅</a></li>
                    <li><a href="/help/about" title="关于我们">关于我们</a></li>
                </ul>
            </div>
			<div class="logo_r"></div>
		</div>
		<!--wp_logo End-->
		<div class="waterfall_line"></div>
        <!--pic-->
        <div class="waterfall_pic">
            $if rand5:
                <div class="waterfall_pic_b _slide">
                    $ post = rand5.pop(0)
                    <a href="/discounts/$post.id">
                        <img name="pic_b" src="$:get_media_url(post.media_id, 2)" width="303" height="303" alt="$post.title" />
                        <div class="pic_tit hide _slide_tit">
                            <span class="fl">$post.dest_name</span>
                            <span class="fr mr_5">
                                $if post.discount > 0:
                                    $post.discount折
                                $else:
                                    $moneyfmt(post.price, initial = post.is_initial_price)
                            </span>
                        </div>
                        <div class="pic_txt _slide_txt">
                            <div class="desc">$:post.title</div>
                            <div class="rating" rating="$post.price_index" ratio="2"></div>
                        </div>
                    </a>
                </div>
                <div class="waterfall_pic_s">
                    <ul>
                        $if rand5:
                            $for post in rand5:
                                <li class="_slide relative">
                                    <a href="/discounts/$post.id">
                                        <img name="pic_s1" src="$:get_media_url(post.media_id, 3)" width="151" height="151" alt="$post.title" />
                                        <div class="pic_tit hide _slide_tit">
                                            <span class="fl">$post.dest_name</span>
                                            <span class="fr mr_5">
                                            $if post.discount > 0:
                                                $post.discount折
                                            $else:
                                                $moneyfmt(post.price, initial = post.is_initial_price)
                                            </span>
                                        </div>
                                        <div class="pic_txt _slide_txt">
                                            <div class="desc">$:post.title</div>
                                            <div class="rating" rating="$post.price_index" text="false" ratio="2"></div>
                                        </div>
                                    </a>
                                </li>
                    </ul>
                </div>
			<!--pic end-->
            <div class="waterfall_pic_login">
                <div class="rss">
                    <div class="index_left">本周特惠追踪精选</div>
                    <div class="index_right">
                        <a href="/discounts" onclick="_gaq.push(['_trackPageview', '/_trc/subscribe?from=home']);" class="eml_rss_btn"><b>去看看</b></a>
                    </div>
                </div>
                <div class="rss_text">专业旅游编辑人工筛选，性价比的保证</div>
                <div class="tabs">
                    <a href="/discounts" class="_hotel on" type="1">最新 Top10</a><a href="/discounts/directing" class="_group" type="2">直销特惠</a><a href="/discounts/lightning" class="_lightning" type="3">闪电特惠</a>
                </div>
				<div class="area">
                    $if TOP10:
                        $for k,v in TOP10.items():
                            $ cls = ''
                            $if loop.index > 1:
                                $ cls = 'hide'
                            <ul class="$k $cls">
                                $if v:
                                    $for p in v:
                                        <li>
                                            <var class="price">$moneyfmt(p.price, isfmt = False,initial=p.is_initial_price)</var> 
                                            <a class="tit" href="/discounts/$p.id" title="$p.title">$:p.title</a>
                                        </li>
                            </ul>
                </div>
                <div class="depart">
                    <a href="/discounts/beijing">北京出发</a> — 
                    <a href="/discounts/shanghai">上海出发</a> — 
                    <a href="/discounts/guangzhou">广州出发</a> — 
                    <a href="/discounts">更多出发</a>
                </div>
			</div>
        </div>
		<!--nav End-->
	</div>
	<!--the_wrap End-->
</div>
<!--top End-->

<div id="content">
	<div class="the_wrap">
		<!--waterfall_company-->
        <div class="mt_10 bold">特惠追踪网站</div>
        <div class="waterfall_company">
            <!--<div class="tit"></div>-->
            <div class="pre disabled"><img src="$config.STATIC_PREFIX/default/images/btn_pre.gif"></div>
            <div class="scrollable" totalrecords="$partners.totalrecords">
                <div class="main">
                    <ul>
                        $if partners.totalrecords > 0:
                            $for p in partners.result:
                                <li><img src="$:get_media_url(p.logo, 3)" width="42" height="42" alt="$p.name">$:p.name</li>
                    </ul>
                </div>
                <div id="newitems" class="hide"></div>
            </div>
            <div class="next browse right"><img src="$config.STATIC_PREFIX/default/images/btn_next2.gif" ></div>
        </div>
        <!--waterfall_company End-->	
        <div class="mt_10 bold">旅行灵感</div>
		<!--wp_box End-->
		<div id="boxes" class="the_box">

        $if affs.result:
            $for aff in affs.result:
			    <div class="wat_box" related="$aff.id">
				    <dl class="wat_lst">
					    <dd class="pic">
						    <a href="/afflatus/$aff.id"><img src="$:get_media_url(aff.media_id)" width="207" alt="$aff.title - $aff.dest_name"/></a>
					    </dd>
					    <dt>
						    <a href="/afflatus/$aff.id">$aff.title</a>
						    <em>$aff.dest_name</em>
					    </dt>
					    <dd class="wa_info">
                            <p>$aff.short_text</p>
					    </dd>
					    <dd class="t_c">
						    <a href="/afflatus/$aff.id" class="wat_btn"><b>想去</b></a>
					    </dd>
				    </dl>
			    </div>

        </div>
        <div class="loading_finished">
            <div id="infscr_nav">
                <img src="$config.STATIC_PREFIX/images/common/loading_blue.gif" class="loading" />
            </div>
            <div id="infscr_finished" class="hide">
                如果你喜欢寻宝图，请<a href="/subscribe" class="_followsite_over">立即订阅</a>每周特惠评测精选。
            </div>
        </div>


	</div>
	<!--the_wrap End-->
</div>
<!--content End-->
<div id="page-nav"><a href="/afflatus/waterfall/2"></a></div>

$:frender.footer(internal_links = True, bignav = True)
